import request from '@/router/axios';

export const depositGrantList = (current, size, params, startTime,endTime) => {
  return request({
    url: '/api/blade-game/depositmarger/depositGrant',
    method: 'get',
    params: {
      ...params,
      current,
      size,
      startTime,
      endTime
    }
  })
}

export const depositTransferList = (current, size, params, startTime,endTime) => {
  return request({
    url: '/api/blade-game/depositmarger/depositTransfer',
    method: 'get',
    params: {
      ...params,
      current,
      size,
      startTime,
      endTime
    }
  })
}

export const depositGrantTotal = (params,startTime,endTime) => {
  return request({
    url: '/api/blade-game/depositmarger/depositGrantTotal',
    method: 'get',
    params: {
      ...params,
      startTime,
      endTime
    }
  })
}

export const depositBalanceTotal = (params) => {
  return request({
    url: '/api/blade-game/depositmarger/depositBalanceTotal',
    method: 'get',
    params: {
      ...params
    }
  })
}

export const addDepositGameBalance = (form) => {
  return request({
    url: '/api/blade-game/depositmarger/addDepositGameBalance',
    method: 'post',
    data:form

  })
}

export const selectDepositBalance = (params) => {
  return request({
    url: '/api/blade-game/depositmarger/selectDepositBalance',
    method: 'post',
    data:params
  })
}

export const depositBalanceList = (current, size, params) => {
  return request({
    url: '/api/blade-game/depositmarger/depositBalanceList',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

export const depositTransferTotal = (params,startTime,endTime) => {
  return request({
    url: '/api/blade-game/depositmarger/depositTransferTotal',
    method: 'get',
    params: {
      ...params,
      startTime,
      endTime
    }
  })
}

export const addDepositBalanceTransfer = (form) => {
  return request({
    url: '/api/blade-game/depositmarger/addDepositBalanceTransfer',
    method: 'post',
    data:form

  })
}


export const loginWhiteList = (current, size, params) => {
  return request({
    url: '/api/blade-game/payWhiteList/pageLogin',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

export const addLoginWhiteList = (form) => {
  return request({
    url: '/api/blade-game/payWhiteList/addLoginWhiteList',
    method: 'post',
    data:form

  })
}

export const editLoginWhiteList = (form) => {
  return request({
    url: '/api/blade-game/payWhiteList/editLoginWhiteList',
    method: 'post',
    data:form

  })
}

export const removeLoginWhiteList = (account) => {
  return request({
    url: '/api/blade-game/payWhiteList/removeLogin',
    method: 'post',
    params: {
      account,
    }
  })
}


export const editLoginDeviceWhiteList = (devices) => {
  return request({
    url: '/api/blade-game/payWhiteList/editLoginDeviceWhiteList',
    method: 'post',
    params: {
      devices,
    }
  })
}

export const loadLoginDeviceWhiteList = () => {
  return request({
    url: '/api/blade-game/payWhiteList/loadLoginDeviceWhiteList',
    method: 'post',
    params: {

    }
  })
}


export const loginWhiteDevice = (current, size, params) => {
  return request({
    url: '/api/blade-game/payWhiteList/pageLoginWhiteDevice',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

export const addLoginWhite = (form) => {
  return request({
    url: '/api/blade-game/payWhiteList/addLoginWhite',
    method: 'post',
    data:form

  })
}
